package com.wyh.reflection;

public class User {
    private String name;

    public Integer age;

    private User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public User(){}

    private String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void run(){
        System.out.println(name + "running......");
    }

    private void sleep(){
        System.out.println(name + "sleeping......");
    }

}
